package com.mashang.bookkeepingbook.service.impl;

import com.mashang.bookkeepingbook.mapper.LoginMapper;
import com.mashang.bookkeepingbook.pojo.entity.User;
import com.mashang.bookkeepingbook.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceimpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;
    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    public User login(String username, String password) {
        User user = new User(null ,username,password,null);
            return loginMapper.select(user);
    }
}
